-- GENERATED SPELL FOR [Blackfathom Tide Priestess] --


function spell0_4802(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(9672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4802', 7000, 1)
end

function spell1_4802(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(11642,pUnit)
pUnit:RegisterEvent('Sorts_4802', 3500, 1)
end

function Sorts_4802(pUnit, Event)
local choix_sorts_4802 = math.random(0, 1)
if choix_sorts_4802 == 0 then
pUnit:RegisterEvent('spell0_4802', 1, 1)
end
if choix_sorts_4802 == 1 then
pUnit:RegisterEvent('spell1_4802', 1, 1)
end
end

function mob4802_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4802', math.random(1500, 3000), 1)
end

function mob4802_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4802_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4802_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4802, 1, 'mob4802_Action')
RegisterUnitEvent(4802, 2, 'mob4802_Leave')
RegisterUnitEvent(4802, 3, 'mob4802_Kill')
RegisterUnitEvent(4802, 4, 'mob4802_Die')
